#pragma once

#include <bofcl_eclic.h>

// 设置ECLIC中断项中level域的位数
static inline void eclic_set_level_bit_amount_by_q(u32_s eclic_q,
						   u32_s level_bit_amount) {
	eclic_cliccfg_s cliccfg = {
		.nlbits = level_bit_amount,
	};
	eclic_wreg_cliccfg_s_by_q(eclic_q, cliccfg);
}
